package com.catchu.pattern.creational.构造器模式.cup;

import com.catchu.pattern.creational.构造器模式.cup.Builder;

/**
 * 创建运动杯
 */
public class SportCupBuilder extends Builder {

    @Override
    protected void line() {
        cup.setLine("生产绳子");
        System.out.println("生产绳子");
    }

    @Override
    protected void cap() {
        cup.setCap("生产盖子");
        System.out.println("生产盖子");
    }

    @Override
    protected void cupBody() {
        cup.setCupBody("生产杯体");
        System.out.println("生产杯体");
    }
}
